<template>
  <transition name="fade" mode="out-in">
    <div class="no-net">
      <img src="@/assets/no-net.png" @click="onClickImg">
      <p>网络不给力</p>
      <p>点击图片刷新试试</p>
    </div>
  </transition>
</template>

<script>
import { Button } from 'vant';
export default {
  components: {
    [Button.name]: Button
  },
  data () {
    return {
    }
  },
  mounted() {

  },
  methods: {
    onClickImg() {
      this.$router.go(-1)
    },
  },
}
</script>

<style scoped>
.no-net {
  height: 100vh;
  overflow: hidden;
  background-color: #fff;
  color: #38393A;
}
.no-net {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: calc(100vh - 54px);
  color: #999999;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}
.no-net img {
  margin-bottom: 16px; 
  width: 252px;
}
</style>
